[PATCH] Add clamping to QColorTransferGenericFunction
authorSamuel Gaist <samuel.gaist@idiap.ch>
Sat, 24 May 2025 19:07:37 +0000 (21:07 +0200)
committerPatrick Franz <deltaone@debian.org>
Tue, 2 Sep 2025 19:04:45 +0000 (21:04 +0200)
commit60323e1e3e4288acf43bca4a21fe2e15056c761c
treecb6d9e09e6f5969f522513711071037ddb88fee3
parent092fe6cef699efe39f0709a46f7f7c310f3939ba
[PATCH] Add clamping to QColorTransferGenericFunction

This ensures that the inputs are within range for the use of these
function.

Depending on the values passed, they can trigger FE_INVALID errors
and thus NaN as return values.

This can happen for example when feeding an invalid ICC profile to
QColorSpace::fromIccProfile.

Credit to OSS-Fuzz

Fixes: QTBUG-137159
Origin: upstream, https://download.qt.io/official_releases/qt/6.8/CVE-2025-5992-qtbase-6.8.patch

Gbp-Pq: Name upstream_cve-2025-5992_input_range_qcolortransformation.diff
src/gui/painting/qcolortransfergeneric_p.h